package com.dhcc.bpm.business.papc.service;

import com.dhcc.bpm.business.papc.entity.ChnlInfo;
import com.dhcc.bpm.business.papc.vo.ChnlInfoVO;
import org.springblade.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * 中间业务渠道信息表  服务类
 *
 * @author liuzhao
 * @since 2020-05-16
 */
public interface IChnlInfoService extends BaseService<ChnlInfo> {

    /**
     * @param page
     * @param chnlInfo
     * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.business.papc.vo.ChnlInfoVO>
     * @Description 自定义分页
     * @Author liuzhao
     * @Date 2020/5/25 9:45
     **/
    IPage<ChnlInfoVO> selectChnlInfoPage(IPage<ChnlInfoVO> page, ChnlInfoVO chnlInfo);

    /**
     * @param id
     * @return com.dhcc.bpm.business.papc.entity.ChnlInfo
     * @Description 详情
     * @Author liuzhao
     * @Date 2020/5/25 9:45
     **/
    ChnlInfo seletChnlInfoById(Long id);

    /**
     * @param chnlInfo
     * @return boolean
     * @Description 新增或修改
     * @Author liuzhao
     * @Date 2020/5/25 9:46
     **/
    @Override
    boolean saveOrUpdate(ChnlInfo chnlInfo);

    /**
     * @param ids
     * @return boolean
     * @Description 删除
     * @Author liuzhao
     * @Date 2020/5/25 9:46
     **/
    boolean deleteChnlInfoByIds(String ids);

    /**
     * @param chnlInfo
     * @return java.util.List<com.dhcc.bpm.business.papc.entity.ChnlInfo>
     * @Description 查询全部信息
     * @Author liuzhao
     * @Date 2020/5/25 9:47
     **/
    List<ChnlInfo> selectChnlInfoAll(ChnlInfo chnlInfo);
}
